package com.qf.pojo;

import java.util.Set;

public class Customer {
    private  Integer id;
    private  String name;
    //一对多的映射
    private Set<Linkman> linkmen;

    public Customer() {
    }

    public Customer(Integer id, String name, Set<Linkman> linkmen) {
        this.id = id;
        this.name = name;
        this.linkmen = linkmen;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Set<Linkman> getLinkmen() {
        return linkmen;
    }

    public void setLinkmen(Set<Linkman> linkmen) {
        this.linkmen = linkmen;
    }

    @Override
    public String toString() {
        return "Customer{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", linkmen=" + linkmen +
                '}';
    }
}
